//
//  CycleCollectionCell.m
//  212--Homework  QQy音乐  阿里星球
//
//  Created by 冀永金 on 16/8/12.
//  Copyright © 2016年 冀永金. All rights reserved.
//

#import "CycleCollectionCell.h"
#import "UIImageView+WebCache.h"
#import "ThirdModel.h"
@implementation CycleCollectionCell
- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        self.cycleImage = [[UIImageView alloc]init];
        [self.contentView addSubview:_cycleImage];
    }
    return self;
}
- (void)layoutSubviews {
    [super layoutSubviews];
    self.cycleImage.frame = self.bounds;
}
- (void)setThird:(ThirdModel *)third {
    _third = third;
    [self.cycleImage sd_setImageWithURL:[NSURL URLWithString:third.picUrl] placeholderImage:[UIImage imageNamed:@"dongting"]];
}
@end
